<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018\6\8 0008
  Time: 19:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <jsp:include page="/static/common/common.jsp"></jsp:include>
    <script type="text/javascript" src="/static/js/plan.js"></script>
</head>
<body>
<%--数据表格--%>
<table id="cus_grid"></table>
<div id="tb">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add'" onclick="add()">新增</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit'" onclick="edit()">编辑</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-remove" onclick="del()">删除</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-remove" onclick="flag()">标记结果</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-reload" onclick="reload()">刷新</a><br>
    <%--查找条件--%>
    <font>创建日期:</font><input class="easyui-datebox qeury_date_text" name="startDate">~<input class="easyui-datebox qeury_date_text" name="endDate">&nbsp;&nbsp;
    <font>范围查找:</font><input class="easyui-combobox qeury_text" name="charge" prompt="发起人" data-options="panelHeight:'auto',valueField:'username',textField:'username',
                                url:'/employee/selectAll.do'"> &nbsp;
                        <input class="easyui-combobox qeury_text" name="cus" prompt="客户" data-options="panelHeight:'auto',valueField:'id',textField:'name',
                                url:'/customer/getAll.do?state'"> &nbsp;
                        <input class="easyui-combobox qeury_text" name="plan" prompt="实施方式" data-options="panelHeight:'auto',valueField:'detailName',textField:'detailName',
                                url:'/dataDetail/menu.do?sn=PLAN'"> &nbsp;
    <a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="query()">查找</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="reset()">重置查询条件</a>
</div>
<div id="form_btn">
    <a href="#" class="easyui-linkbutton" iconCls="icon-save" onclick="save()">保存</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="cancel()">取消</a>
</div>
<div id="set_btn">
    <a href="#" class="easyui-linkbutton" iconCls="icon-save" onclick="setsave()">保存</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="setcancel()">取消</a>
</div>
<%--查看联系方式--%>
<div id="resetpassword_dialog">
    <table id="tel_grid"></table>
</div>
<%--联系用户的弹窗--%>
<%--新增,编辑 弹窗--%>
<div id="emp_dialog">
    <%--切记提交表单的方式--%>
    <form id="emp_form" method="post">
        <table align="center" style="margin-top: 15px">
            <input type="hidden" name="id"/>
            <%--<input type="hidden" name="cus.id"/>--%>
            <tr>
                <td>顾客姓名:</td>
                <td>
                    <input name="cus.id" class="easyui-combobox" data-options="panelHeight:'auto',valueField:'id',textField:'name',
                                url:'/customer/getAll.do?state'">
                </td>
            </tr>
            <tr>
                <td>计划时间:</td>
                <td>
                    <input name="plandate" class="easyui-datebox">
                </td>
            </tr>
            <tr>
                <td>计划主题:</td>
                <td>
                    <input name="plantitle" class="easyui-textbox">
                </td>
            </tr>
            <tr>
                <td>实施方式:</td>
                <td>
                    <input name="planmothed" class="easyui-combobox" data-options="panelHeight:'auto',valueField:'detailName',textField:'detailName',
                                url:'/dataDetail/menu.do?sn=PLAN'">
                </td>
            </tr>
            <tr>
                <td>备注:</td>
                <td>
                    <input name="text" class="easyui-textbox" >
                </td>
            </tr>
            <tr>
                <td>计划详情:</td>
                <td>
                    <input name="detail" class="easyui-textbox" style="height: 200px" data-options="multiline:true">
                </td>
            </tr>
        </table>
    </form>
</div>
<%--编辑责任人弹窗--%>
<div id="inchargeuser_dialog">
    <form id="inchargeuser_form" method="post">
        <input name="id" type="hidden">
        <table>
            <tr>
                <td>客户:</td>
                <td><input id="cusname" name="name" class="easyui-textbox" data-options="readonly:true" ></td>
            </tr>
            <tr id="current_tr">
                <td>计划编号:</td>
                <td><input  name="sn" data-options="readonly:true"
                           class="easyui-textbox"></td>
            </tr>
            <tr id="move_tr">
                <td id="move_td">计划标题:</td>
                <td><input name="plantitle" data-options="readonly:true"
                           class="easyui-textbox"></td>
            </tr>
            <tr id="reason_tr">
                <td>执行效果:</td>
                <td><input id="grade" name="grade" class="easyui-combobox" data-options="panelHeight:'auto',valueField:'value',textField:'label',
                                data:[{
                                    label: '差',
                                    value: '1'
                                },{
                                    label: '中',
                                    value: '2'
                                },{
                                    label: '优',
                                    value: '3'
                                }]"></td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>
